home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / cclib / include / stddef.h < prev    next >
C/C++ Source or Header  |  1995-11-16  |  576b  |  44 lines

  1. #ifndef STDDEF_H
  2. #define STDDEF_H 1
  3.  
  4. #ifndef __SIZE_T
  5. #define __SIZE_T 1
  6. typedef unsigned long size_t;
  7. #endif
  8.  
  9. #ifndef __FPOS_T
  10. #define __FPOS_T 1
  11. typedef long fpos_t;
  12. #endif
  13.  
  14. #ifndef __PTRDIFF_T
  15. #define __PTRDIFF_T 1
  16. typedef long ptrdiff_t;
  17. #endif
  18.  
  19. #ifndef __WCHAR_T
  20. #define __WCHAR_T
  21. typedef char wchar_t;
  22. #endif
  23. #ifndef __TIME_T
  24. #define __TIME_T 1
  25. typedef long time_t;
  26. #endif
  27.  
  28. #ifndef __CLOCK_T
  29. #define __CLOCK_T 1
  30. typedef long clock_t;
  31. #endif
  32.  
  33. #ifndef NULL
  34. #define NULL ((void *)0)
  35. #endif
  36.  
  37. #ifndef offsetof
  38. #define offsetof(P,M) ((size_t)&((P *)NULL)->M)
  39. #endif
  40.  
  41. #endif
  42.  
  43.  
  44.